package com.yohann.designPattern.interpreter;

import java.util.HashMap;

/**
 * <p>
 * 客户端
 * </p>
 *
 * @author Yohann
 * @since 2021/2/13 16:41
 */
public class Client {
    public static void main(String[] args) {
        HashMap<String, Integer> var = new HashMap<>();
        var.put("a", 6);
        var.put("b", 5);
        Calculator calculator = new Calculator("a+b");

        //11
        System.out.println(calculator.run(var));
    }
}